class AutoInjectBundle{
    constructor(){
        this.bundleList=[]
        this.bundleCssList=[]
    }
    apply(compiler) {
        compiler.hooks.compilation.tap('SetScriptTimestampPlugin',
          (compilation, callback) => {
            compilation.plugin(
              "html-webpack-plugin-before-html-processing",
               (htmlPluginData, callback) =>{
                this.bundleList= htmlPluginData.assets.js;
                this.bundleCssList=htmlPluginData.assets.css
              }
            );
          }
        );
      }
}
module.exports=AutoInjectBundle